package cn.qf.shop.mapper;

import cn.qf.shop.pojo.entity.Activities;import org.apache.ibatis.annotations.Param;import java.util.List;

public interface ActivitiesMapper {

    //添加活动管理表
    int insertAct(@Param("activities") Activities activities);

    //修改活动管理表
    int updateAct(@Param("activities") Activities activities);

    //删除单个活动管理表
    int deleteAct(@Param("actId") int actId);

    //批量删除
    int deleteAllAct(@Param("actIds") List<Integer> actIds);

    //全部活动,用于前端界面
    List<Activities> showAll();

    //根据关键字查询用户
    List<Activities> selectAll(@Param("keyword") String keyword, @Param("createTime") String createTime, @Param("updateTime") String updateTime, @Param("limit") int limit, @Param("offset") int offset);
}